@page { 
    margin: 50px 30px 90px 30px; 
    /*
    -fs-flow-top: "header";
    -fs-flow-bottom: "footer";
    -fs-flow-left: "left";
    -fs-flow-right: "right";
*/
    border: none;
    padding:10px;
    @top-left {content: element(header);}
    @bottom-center {content: element(footer);}
}

#header {
    font:normal 9px arial;
    margin:20px 0px 0px 15px;
    /*
    position: absolute; top: 0; left: 0; 
*/
    border-bottom: solid 1px black;
    /*
    -fs-move-to-flow: "header";
*/  
    position:running(header);
}

#footer {
    font-size:6px;
    padding:0px;
    position: absolute; top: 0; left: 0;
    border-top:solid 1px black;
    /*
    -fs-move-to-flow: "footer";
*/
    position:running(footer);
}


#pagenumber:before {
    content: counter(page);
}

#pagecount:before {
    content: counter(pages);
}

table{
    font:normal 11px arial;
    width:100%;
    background:#ffffff;
}

table .tabletitle{
    background:#f0f0f0;
}
table .tabletitle td{
    padding:5px;
}
table .tableheader{
    height:40px;
}
table tr{
	page-break-inside: avoid;
}
table th{
    padding:3px;
    text-align:left;
    vertical-align:top;
    font-weight:normal;
}

table td{
    background:#ffffff;padding:3px;
}

table td.separator{
    border-bottom:1px dashed #333333;
}
#footer div{
    float:left;
    margin-right:5px;
    width:90%;
}
#footer img{
    margin:5px 0px;
}
